<?php
import("RelationModel");
class NewsListModel extends RelationModel {
	// 自动验证设置
	 public $_link = array(
	     'CategroyInfo'=>array(
		     'mapping_type'=>BELONGS_TO,
		     'foreign_key'=>'C_id',
		     'mapping_fields'=>'C_name',
		     'as_fields'=>'C_name',
		 )
     );
}
?>